<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="<%=basePath%>css/exercise.css">
  </head>
  
  <body>
  <div class="header"><a href="<c:url value='/UserServlet?method=doingExercises'/>">
<span class="span_1">我要做题</span>
</a>
<a href="<c:url value='/UserServlet?method=findWrongExerciseByUser'/>">
<span class="span_2">我的错题</span></a>
<a href="<c:url value='/UserServlet?method=findMyExercise'/>">
<span class="span_3">我的收藏</span></a>
<a href="<%=basePath%>uploadexercise.jsp">
<span class="span_4">添加题目</span></a>
</div>
    <form action="<c:url value='/UserServlet?method=addExercise'/>" method="post">
    	
题目类型：<select name="type">
    		<option>C</option>
    		<option>JAVA</option>
    	</select><br><br>
    	题目：<input type="text" name="title"><br><br>
    	A选项：<input type="text" name="A"><br><br>
    	B选项：<input type="text" name="B"><br><br>
    	C选项：<input type="text" name="C"><br><br>
    	D选项：<input type="text" name="D"><br><br>
    	答案：<select name="answer">
    		<option>A</option>
    		<option>B</option>
    		<option>C</option>
    		<option>D</option>
    	</select><br><br>
    	<input type="submit" value="上传" style=" background:#F00; color:#FFF; border:none;">
    </form>
  </body>
</html>
